const fs = require('fs')
console.log(fs)
window.onload = function(){
  const btn = this.document.querySelector('#btn')
  const mybaby = this.document.querySelector('#mybaby')
  btn.onclick = function(){
    fs.readFile('xiaojiejie.txt', (err, data) =>{
      mybaby.innerHTML = data
    })
  }
}